package com.spring.shiro.main.java.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.spring.shiro.main.java.model.UserRole;
@Repository
public interface UserRoleMapper {
	int insert(UserRole userRole);
	
	int updateByPrimaryKeySelective(UserRole userRole);
	
	List<UserRole> findUserRoleByUserId(Long userId);
	
	int deleteById(Long id);
	
	List<Long> findRoleIdListByUserId(Long userId);
}
